package us.nchu.tomtiger.service;

import org.springframework.stereotype.Service;
import us.nchu.tomtiger.dao.AdminDao;
import us.nchu.tomtiger.model.Admin;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by XiongXuan on 2018/1/11.
 */
@Service
public class AdminService {
    @Resource
    private AdminDao adminDao;

    public Admin getAdminById(String id) {
        return adminDao.query(id);
    }

    public List<Admin> getAdminList() {
        return adminDao.queryAll();
    }
}
